import { get, post_json } from '@/http/axios'
export default {
    namespaced: true,
    state: {
        // 产品数据
        orderData: {}
    },
    mutations: {
        SET_PRODUCTDATA(state, payload) {
            state.orderData = payload

        }
    },
    actions: {
        // 获取产品数据
        async getorderLinesData({ commit }, payload) {
            let res = await get('/order/findById', payload)
            // console.log(res);
            commit('SET_PRODUCTDATA', res.data.data)
        }
    }
}